package com.wut.easypoi.common.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MemberExcel {

    @Excel(name = "ID", width = 10)
    private String id;

    @Excel(name = "用户名", width = 20, needMerge = true)
    private String username;

    private String password;

    @Excel(name = "昵称", width = 20, needMerge = true)
    private String nickname;

    @Excel(name = "出生日期", width = 20, format = "yyyy-MM-dd", needMerge = true)
    private LocalDate birthday;

    @Excel(name = "手机号", width = 20, needMerge = true, desensitizationRule = "3_4")
    private String phone;

    @Excel(name = "性别", width = 10, replace = {"男_0", "女_1"}, needMerge = true, addressList = true)
    private Integer gender;

    @Excel(name = "照片", width = 15, type = 2, height = 15, needMerge = true)
    private String photo;
}
